package com.yanqu.road.entity.log.cross.fivehero;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;

@FieldTypeAnnotation(desc = "五雄争霸-玩家体力日志", tableName = "t_l_ck_activity_fivehero_log_hp", autoSave = true, uploadCk = true, isCross = true)
public class LogFiveHeroUserHp extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "分组ID", isIndex = true)
    private int groupId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "阵营id")
    private int campId;
    @FieldTypeAnnotation(desc = "1探索消耗,2时间恢复,3道具恢复,4探索状态改变返还")
    private int type;
    @FieldTypeAnnotation(desc = "变更量")
    private int value;
    @FieldTypeAnnotation(desc = "变更后体力数量")
    private int nowValue;

    public LogFiveHeroUserHp(int groupId, int activityId, long userId, int campId, int type, int value, int nowValue) {
        this.groupId = groupId;
        this.activityId = activityId;
        this.userId = userId;
        this.campId = campId;
        this.type = type;
        this.value = value;
        this.nowValue = nowValue;
    }

    public long getUserId() {
        return userId;
    }

}
